#!/usr/bin/env bash
set -e
echo "start to execute build"

prepare_env() {
  apt-get update
  apt install golang -y
  export GO111MODULE=on
  export GOPROXY=https://goproxy.cn
}

build() {
  go mod tidy
  go mod download
  go build
}

prepare_env
build
